package cn.poco.pepsi.activity.detail;

import java.util.ArrayList;
import java.util.List;

import cn.poco.pepsi.R;
import cn.poco.pepsi.adapter.CommentListAdapt;
import cn.poco.pepsi.bean.Comment;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.ListView;

public class CommentListActivity extends Activity {
	
	private List<Comment> lists;
	private CommentListAdapt adapt;
	private ListView lView;
	

	
	protected void initView(){
		lView=(ListView) findViewById(R.id.comment_listview);

	} 
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.comment_list);
		initView();
		
		Comment comBean=new Comment();
		comBean.setName("ABC1");
		comBean.setLevel("OOOOO");
		Comment comBean2=new Comment();
		comBean2.setName("ABC2");
		comBean2.setLevel("OOOOO");
		
		lists=new ArrayList<Comment>();
		lists.add(comBean);
		lists.add(comBean2);
		
		
		
		adapt = new CommentListAdapt(CommentListActivity.this, lists);
		lView.setVisibility(View.VISIBLE);
		lView.setAdapter(adapt);
		
	}
	
	
	

}
